#include "Listener.h"

Listener::~Listener(void)
{
	//cleanup here
}

void Listener::addListener(EventListener* event)
{
	Listeners::const_iterator itr = _listeners.find(event);
	if(itr != _listeners.end()) {
		_listeners.insert(event);
	}
}

void Listener::removeListener(EventListener** event)
{
	if(event && *event) {
		Listeners::iterator itr = _listeners.find(*event);
		if(itr != _listeners.end()) {
			_listeners.erase(itr);
		}
	}
}